package com.decent.ejfadmin.common.bean;


import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * describe:供货余额bean
 *
 * @author 陈豆豆
 * @date 2019/09/07
 */
@SuppressWarnings("ALL")
@Data
public class SupplyBalance implements Serializable {
    private static final long serialVersionUID = -2257550407771617598L;
    /**
     * 会员id
     */
    private Long userId;
    /**
     * 供货余额
     */
    private BigDecimal balance = BigDecimal.ZERO;
    /**
     * 冻结金额
     */
    private BigDecimal freezeBalance = BigDecimal.ZERO;
    /**
     * 实际可提现金额
     */
    private BigDecimal actualBalance = BigDecimal.ZERO;
    /**
     * 乐观锁版本号
     */
    private Integer version = 0;
    /**
     * 佣金
     */
    private BigDecimal commision = BigDecimal.ZERO;
    /**
     * 冻结佣金
     */
    private BigDecimal freezeCommision = BigDecimal.ZERO;

    /**
     * 供货余额
     */
    private BigDecimal supplyBalance = BigDecimal.ZERO;
    /**
     * 供货处理中金额
     */
    private BigDecimal freezeSupplyBalance = BigDecimal.ZERO;
    /**
     * 供货结算金额
     */
    private BigDecimal settleSupplyBalance = BigDecimal.ZERO;

    public SupplyBalance(Long userId) {
        this.userId = userId;
    }

    public SupplyBalance() {
    }
}
